package com.dx.common.table.ppt;

/**
 * AbstractBis_pm_itemId entity provides the base persistence definition of the
 * Bis_pm_itemId entity. @author MyEclipse Persistence Tools
 */

public class Bis_ins_itemId implements java.io.Serializable {

	// Fields

	private String tool_model_fk;
	private String ins_type_fk;
	private String data_dsc;

	// Constructors

	/** default constructor */
	public Bis_ins_itemId() {
	}


	/** full constructor */
	public Bis_ins_itemId(String tool_model_fk, String ins_type_fk, String data_dsc) {
		this.tool_model_fk = tool_model_fk;
		this.ins_type_fk = ins_type_fk;
		this.data_dsc = data_dsc;
	}

	// Property accessors

	public String getTool_model_fk() {
		return this.tool_model_fk;
	}

	public void setTool_model_fk(String tool_model_fk) {
		this.tool_model_fk = tool_model_fk;
	}

	public String getIns_type_fk() {
		return ins_type_fk;
	}

	public void setIns_type_fk(String ins_type_fk) {
		this.ins_type_fk = ins_type_fk;
	}

	public String getData_dsc() {
		return this.data_dsc;
	}

	public void setData_dsc(String data_dsc) {
		this.data_dsc = data_dsc;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		Bis_ins_itemId that = (Bis_ins_itemId) o;

		if (tool_model_fk != null ? !tool_model_fk.equals(that.tool_model_fk) : that.tool_model_fk != null)
			return false;
		if (ins_type_fk != null ? !ins_type_fk.equals(that.ins_type_fk) : that.ins_type_fk != null) return false;
		return data_dsc != null ? data_dsc.equals(that.data_dsc) : that.data_dsc == null;
	}

	@Override
	public int hashCode() {
		int result = tool_model_fk != null ? tool_model_fk.hashCode() : 0;
		result = 31 * result + (ins_type_fk != null ? ins_type_fk.hashCode() : 0);
		result = 31 * result + (data_dsc != null ? data_dsc.hashCode() : 0);
		return result;
	}
}